package com.liachen.stock.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.liachen.stock.controller.req.QueryStockSummaryReq;
import com.liachen.stock.entity.StockSummaryInfo;
import com.liachen.stock.entity.UserStockInfo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 用户持仓信息 Mapper 接口
 * </p>
 *
 * @author Liachen
 * @since 2020-01-01
 */
public interface UserStockInfoMapper extends BaseMapper<UserStockInfo> {

    /**
     * @param num
     * @param startDate
     * @return
     */
//    List<StockSummaryInfo> querySummaryInfo(@Param("num") Integer num, @Param("startDate") Date startDate);

    /**
     * @param req
     * @return
     */
    List<StockSummaryInfo> querySummaryInfo(@Param("req") QueryStockSummaryReq req);
}
